import service from '../utils/request'
// 1.获取用户列表
export function user_list (payload = {}){
    return service.get('/userlist',{params:payload})
}
// 2.获取用户详情
export function user_detail (payload = {}){
    return service.get('/userlist/'+payload.id)
}
// 3.搜索用户
export function search_list (payload = {}){
    return service.get('/userlist',{params:payload})
}
// 4.删除用户单挑数据
export function delete_user (payload = {}){
    return service.delete('/userlist/'+payload.id)
}
// 5.添加用户
export function add_user (payload = {}){
    return service.post('/userlist',payload)
}
// 6.获取标签列表
export function label_list (payload = {}){
    return service.get('/label',{params:payload})
}

// 7.搜索标签
export function search_label (payload = {}){
    return service.get('/label',{params:payload})
}
// 8.删除标签
export function delete_label (payload = {}){
    return service.delete('/label/'+payload.id)
}
// 9.添加标签
export function add_label (payload = {}){
    return service.post('/label',payload)
}
// 10.会员等级列表
export function vipgrade_list (payload = {}){
    return service.get('/vipgrade',{params:payload})
}
// 11.删除等级列表单挑数据
export function delete_vipgrade (payload = {}){
    return service.delete('/vipgrade/'+payload.id)
}
// 12.查询等级列表
export function vipgrade_search (payload = {}){
    return service.get('/vipgrade',{params:payload})
}
// 13.添加会员
export function add_vipgrade (payload = {}){
    return service.post('/vipgrade',payload)
}
// 14. 付费会员卡管理列表
export function pay_list (payload = {}){
    return service.get('/paylist',{params:payload})
}
// 15. 添加付费会员卡
export function pay_add (payload = {}){
    return service.post('/paylist',payload)
}
// 16.删除付费会员卡列表单挑数据
export function delete_paylist(payload = {}){
    return service.delete('/paylist/'+payload.id)
}
// 17.编辑用户信息
export function user_edit( payload = {} ){
    return service.patch('/userlist/'+payload.id, payload );
}

  